package run.siyuan.manag.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import run.siyuan.manag.entity.SysRole;
import run.siyuan.manag.mapper.SysRoleMapper;
import run.siyuan.manag.service.SysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  角色表  服务实现类
 * </p>
 *
 * @author siyuan
 * @since 2021-01-13
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Override
    public SysRole getSysRoleByUserName(String username) {
        return baseMapper.getSysRoleByUserName(username);
    }
}
